package com.example.demo.controller;

import com.example.demo.repmsg.Msg;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SecurityController {
    @RequestMapping("/")
    public String index(Model model) {
        return "login";
    }

    @RequestMapping("/hell")
    public String hello(Model model) {
        model.addAttribute("sb","sba");
        return "hello";
    }
    @RequestMapping("/home")
    public String home() {
        return "home";
    }

}
